using DimensionsHelper.LanguageService.Syntax;

namespace DimensionsHelper.LanguageService;

public class AnalysisEnumMemberSignature : AnalysisDeclaration
{

    internal AnalysisEnumMemberSignature(EnumMemberSignature syntaxNode, AnalysisNode? parent) : 
        base(AnalysisBoundKinds.EnumMemberSignature, syntaxNode, parent)
    {
        Syntax = syntaxNode;
    }

    public override EnumMemberSignature Syntax { get; }
}


public static partial class AnalysisNodeFactory
{
    /// <summary>
    /// 创建一个枚举成员签名
    /// </summary>
    /// <param name="syntaxNode">原始语法节点</param>
    /// <param name="parent">父节点，可以忽略</param>
    public static AnalysisEnumMemberSignature EnumMemberSignature(EnumMemberSignature syntaxNode, AnalysisNode? parent)
    {
        return new AnalysisEnumMemberSignature(syntaxNode, parent);
    }
}